<div class="album wp-20" ui-view="container">
    <div class="head_title">
        <span class="jump-color" ui-sref="main.playPlan({pageNo:1})">播控方案</span>
        <span class="tit-color"> / 专辑管理</span>
    </div>
    <div class="searchWapper white-background">
        <div class="form-group searchLump">
            <div class="searchTitle">搜索：</div>
            <div class="search-select">
                <select ng-model="search.key"
                        ng-options="fileName.key  as fileName.value for fileName in fileNames"></select>
                <input type="text" class="input width-150"  ng-model="search.value">
                <input type="button" class="btn btn-primary" value="搜索" ng-click="findData()">

            </div>

        </div>
        <div class="form-group searchLump">
            <div class="searchTitle">操作：</div>
            <div class="search-select">
                <button class="btn btn-primary" style="margin-left: 20px" ng-click="adjustAlbumPlan()">播控调整</button>

            </div>

        </div>
    </div>

    <div class="white-background" style="margin:15px  0">

        <table class="table table-bordered table-hover table-page">

            <thead>
            <tr>

                <th><input type="checkbox" id="allCheck" class="magic-checkbox" ng-model="$parent.allChecked"
                           ng-change="allCheckChange(allChecked)">
                    <label for="allCheck"></label></th>
                <th>专辑_ID</th>
                <th>专辑名称</th>
                <th>操作</th>

            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="album in albums">
                <td>
                    <input type="checkbox" id="{{$index}}" class="magic-checkbox" ng-model="album.checked"
                           ng-change="albumCheckChange(album)">
                    <label for="{{$index}}"></label>
                </td>

                <td>
                    {{album.albumId}}
                </td>
                <td>
                    {{album.albumName}}
                </td>
                <td>
                    <a class="time-out" ng-click="adjustAlbumPlanOne(album.albumId)">播控调整</a>
                </td>
            </tr>
            </tbody>
        </table>
    </div>

    <div class="panel-footer paging">
        <s-pagination conf="paginationConf"></s-pagination>
    </div>


    <script type="text/ng-template" id="adjustAlbumPlan.html">

        <div class="modal-header bg-white">
            <button type="button" class="close" ng-click="modelCancel()"><span>&times;</span></button>
            <span class="modal-title">方案调整</span>
        </div>
        <form class="w5c-form demo-form"  w5c-form-validate name="specialTag">
        <div class="modal-body ng-cloak">
            <div class="form-group">
                <label class="col-sm-2 control-label" style="padding: 5px"><i class="red-icon">*</i>方案：</label>
                <div class="col-sm-8">
                    <div class="input-group">
                        <select ng-model="data.newPlan" required name="plan">
                            <option value="">播控方案</option>
                            <option ng-repeat="plan in planList" value="{{plan.id}}">{{plan.name}}</option>
                        </select>
                    </div>
                </div>
                <div class="clear"></div>

                <div class="form-group">
                    <label class="col-sm-2 control-label" style="padding: 5px"><i class="red-icon">*</i>原因：</label>
                    <div class="col-sm-8 personal-head">
                        <textarea ng-model="data.explain" ng-readonly="data.newPlan==0"
                                  name="explain" required="" ng-maxlength="400"></textarea>
                    </div>
                </div>

                <div class="clear"></div>

            </div>
            <div class="modal-footer">
                <button class="btn btn-primary" type="button" w5c-form-submit="modelOk()">确定</button>
                <button class="btn ims-btn" type="button" ng-click="modelCancel()">取消</button>
            </div>
        </div>
        </form>

    </script>

    <!--<a ui-sref="campaigns.detail({campaignsId:1})"  ui-sref-opts="{inherit:false}">aaaaa</a>-->
</div>
